<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>组件细节-is用法</title>
</head>
<body>
    <div id="app">
        <table>
            <tbody>
                <tr is="row"></tr>
                <tr is="row"></tr>
                <tr is="row"></tr>
            </tbody>
        </table>
    </div>
</body>
<script src="vue.js"></script>
<script>
    Vue.component('row', {
        data: ()=>{
            return {
                'content': 'this is a rowa'
            }
        },
        template: '<tr><td>{{content}}</td></tr>'
    })
    var app = new Vue({
        el: '#app',
        data: {
            content: 'hello world!'
        }
    })
</script>
</html>